<%@page import="cn.sendto.service.ResidentInfoService"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" errorPage="../err.jsp"%>
	<jsp:include page="../lock.jsp"></jsp:include>
<%
	request.setCharacterEncoding("UTF-8");
	String id = request.getParameter("id");
	String username = request.getParameter("username");
	String userpass = request.getParameter("userpass");
	String name = request.getParameter("name");
	String tellphone = request.getParameter("tellphone");
	ResidentInfoService ris = new ResidentInfoService();
	int i = ris.modres(username,userpass,name,tellphone,id);
	if(i > 0 ){
		request.setAttribute("residentinfo", "修改成功");
		request.getRequestDispatcher("residentlist.jsp").forward(request, response);
		return;
	}else{
		request.setAttribute("residentinfo", "修改失败");
		request.getRequestDispatcher("residentlist.jsp").forward(request, response);
		return;
	}

%>